package com.gjy.quartz.trigger;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-08-30 15:46:43
 */
public class TriggerJob implements Job {

    private static final Logger log = LoggerFactory.getLogger(TriggerJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDataMap data = context.getJobDetail().getJobDataMap();
        log.info("name: {}, time: {}", data.getString("name"), data.getString("time"));
    }
}
